package com.beetobe.main.schedule;

public class AttendantInfo implements Comparable<AttendantInfo> {
	int year;
	int month;
	int day;
	String name;

	public AttendantInfo(int year, int month, int day, String name) {
		this.year = year;
		this.month = month;
		this.day = day;
		this.name = name;
	}
	
	public int getYear() {
		return year;
	}

	public int getMonth() {
		return month;
	}

	public int getDay() {
		return day;
	}

	public String getName() {
		return name;
	}
	
	public int compareTo(AttendantInfo another) {
		try {
			return name.compareTo(another.name);
		} catch (NullPointerException e) {
			return 0;
		}
	}

}
